package cn.meizhu.org.service.impl;

import cn.meizhu.base.service.impl.BaseServiceImpl;
import cn.meizhu.org.domain.Department;
import cn.meizhu.org.domain.Employee;
import cn.meizhu.org.mapper.DepartmentMapper;
import cn.meizhu.org.mapper.EmployeeMapper;
import cn.meizhu.org.query.DepartmentQuery;
import cn.meizhu.org.query.EmployeeQuery;
import cn.meizhu.org.service.IEmployeeService;
import cn.meizhu.util.QueryResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;


    @Override
    public void patchDelDepartmentByIds(Long[] ids) {
        employeeMapper.patchDelDepartmentByIds(ids);
    }

    @Override
    public void updateBystate(Long id) {
        employeeMapper.updateBystate(id);
    }

    @Override
    public void updateByIdState(Long id) {
        employeeMapper.updateByIdState(id);
    }

}
